package com.sc.service.member;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sc.dal.dto.member.MemberCardDto;
import com.sc.dal.mapper.member.MemberCardMapper;
import com.sc.dal.model.member.MemberCard;
import com.sc.service.BaseServiceImpl;

/**
 * @ClassName: MemberCardService
 * @Description: 用户银行卡管理service
 * @author LeiJia
 * @date 2017年3月20日 下午14:52:26
 * @version V1.0
 */
@Service
public class MemberCardService extends  BaseServiceImpl<MemberCard>{
	
	@Autowired
	private MemberCardMapper memberCardMapper;
	
	public MemberCard selectByPrimaryKey(Integer id) {
		return memberCardMapper.selectByPrimaryKey(id);
	}
	
	public List<MemberCard> selectByParam(MemberCard card){
		return memberCardMapper.selectByParam(card);
	}

	public int insert(MemberCard card) {
		return memberCardMapper.insert(card);
	}
	
	public int count(MemberCard card){
		return memberCardMapper.count(card);
	}
	
	public MemberCard selectByCardNumber(String cardNumber){
		return memberCardMapper.selectByCardNumber(cardNumber);
	}
	
	public List<MemberCardDto> memberBankInstList(String memberId){
		return memberCardMapper.memberBankInstList(memberId);
	}
	public List<MemberCardDto> memberBankCardList(MemberCardDto cartDto ){
		return memberCardMapper.memberBankCardList(cartDto);
	}
	
	public int updateByPrimaryKeySelective(MemberCard card){
		return memberCardMapper.updateByPrimaryKeySelective(card);
	}
	
	
}
